quadratic system of equations algebraically